home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / Table / Sources / Cell.h < prev    next >
Encoding:
Text File  |  1996-04-25  |  1.0 KB  |  36 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Cell.h
  4. //    Release Version:    $ ODF 1 $ 
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef CELL_H
  11. #define CELL_H
  12.  
  13. //========================================================================================
  14. //    class CCell
  15. //========================================================================================
  16.  
  17. class CCell
  18. {
  19. public:
  20.     CCell() {fX = -1; fY = -1;}
  21.     CCell(short x, short y) {fX = x; fY = y;}
  22.     CCell(const CCell& other) {fX = other.fX; fY = other.fY;} 
  23.     ~CCell() {}
  24.     
  25.     CCell& operator=(const CCell& other) {fX = other.fX; fY = other.fY; return *this;}
  26.     
  27.     FW_Boolean operator==(const CCell& other) const {return other.fX == fX && other.fY == fY;}
  28.     FW_Boolean operator!=(const CCell& other) const {return other.fX != fX || other.fY != fY;}
  29.     
  30. public:
  31.     short            fX;
  32.     short            fY;
  33. };
  34.  
  35. #endif
  36.